home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Trouble & Attitude 4
/
Trouble and Attitude - Issue 04.iso
/
mac
/
DATA
/
MOVIES
/
COMMON.Cxt
/
00077_Field_Section Intro Page Script SAMPLE.txt
< prev
next >
Wrap
Text File
|
1997-01-14
|
4KB
|
156 lines
--
-- PORTFOLIO section script
-- "intro" page script
-- initialization and introduction
--
on enterFrame
global gMovieName, gMovie, gSoloMode
global gNextIcon, gPreIcon, gBackIcon, gControlIcon, gIndexIcon, gFirstIcon
global gButton1, gButton2, gButton3
global gLocalSound
global gMusicOn, gCaptionOn
global gCurPath, gNavMode
global gControlPanel, gHotText
global gMap1Icon, gMap2Icon
-- Set up globals for this section
set gNavMode = "intro"
if voidP("gLocalSound") then set gLocalSound = FALSE
if voidP("gMusicOn") then set gMusicOn = TRUE
if voidP("gCaptionsOn") then set gCaptionsOn = TRUE
if voidP("gSoloMode") then set gSoloMode = TRUE
if voidP("gMovieName") then set gMovieName = "*"
if voidP(gCurPath) then
-- set up globals normally set up in START00.DIR
set gCurPath = "Breaking the Waves:Attitude Master:" -- fragile this path for test only
end if
-- make sure the control panel is current in every way
if objectP(gControlPanel) then
tell window "Control Panel"
setIconStatus "music", gMusicOn
setIconStatus "caption", gCaptionOn
end tell
end if
-- Set up the sprite/channel relationship for this section
-- Intro Sprites
set gButton1 = 5
set gButton2 = 6
set gIndexIcon = 8
set gControlIcon = 9
-- Chapter Sprites
set gNextIcon = 10
set gPreIcon = 11
set gHotText = 12
if voidP("gLocalSound") then
set gLocalSound = FALSE
else
set gLocalSound = FALSE
end if
puppetsprite gIndexIcon TRUE
puppetsprite gControlIcon TRUE
puppetsprite gButton1 TRUE
puppetsprite gButton2 TRUE
set the member of sprite gButton1 to member "button1-icon"
set the member of sprite gButton2 to member "button2-icon"
set the member of sprite gControlIcon to member "control-icon"
set the member of sprite gIndexIcon to member "index-icon"
if rollOver(gButton1) then
set the member of sprite gButton1 to member "button1-icon-hot"
set the text of member "Message Text" to "Jean Mahaux Portfolio..."
else if rollOver(gButton2) then
set the member of sprite gButton2 to member "button2-icon-hot"
set the text of member "Message Text" to "Michael Segal Portfolio..."
else if rollOver(gControlIcon) then
set the member of sprite gControlIcon to member "control-icon-hot"
set the text of member "Message Text" to "Reveal the control panel"
else if rollOver(gIndexIcon) then
set the member of sprite gIndexIcon to member "index-icon-hot"
set the text of member "Message Text" to "Return to Table of Contents"
else
set the text of member "Message Text" to "Click on one of photos to view a series..."
end if
dontPassEvent
end enterFrame
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on exitFrame
global gMovieName, gMovie, gSoloMode
global gNextIcon, gPreIcon, gBackIcon, gIndexIcon, gFirstIcon
global gButton1, gButton2, gButton3
global gTest
if gSoloMode = FALSE then
keepmusic
end if
set gTest = 1
go to the frame
dontPassEvent
end exitFrame
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on MouseUp
global gMovieName, gMovie, gSoloMode
global gNextIcon, gPreIcon, gBackIcon, gIndexIcon, gFirstIcon, gControlIcon
global gButton1, gButton2, gButton3
set destination = "*"
if the ClickOn = gButton1 then
set destination = "C2"
end if
if the ClickOn = gButton2 then
set destination = "C1"
end if
if the ClickOn = gIndexIcon then
set destination = "index"
end if
if the ClickOn = gControlIcon then
openControlPanel
end if
if destination <> "*" then
puppetsprite gButton1 FALSE
puppetsprite gButton2 FALSE
puppetsprite gIndexIcon FALSE
puppetsprite gControlIcon FALSE
if destination = "index" then
go to frame "Index" of movie "INDEX.DIR"
else
go to frame destination
end if
else
-- alert "Internal Error: I don't know where to go." -- we can't get here
end if
end MouseUp